package org.jsets.fastboot.util;

public class HttpMethodUtils {
	
	public final static String POST = "POST";
	public final static String GET = "GET";
	public final static String DELETE = "DELETE";
	public final static String PUT = "PUT";
	
	public static boolean isPost(String method) {
		if(StringUtils.isBlank(method)) {
			return false;
		}
		return POST.equals(method.toUpperCase());
	}
	
	public static boolean isPut(String method) {
		if(StringUtils.isBlank(method)) {
			return false;
		}
		return PUT.equals(method.toUpperCase());
	}
	
	public static boolean isGet(String method) {
		if(StringUtils.isBlank(method)) {
			return false;
		}
		return GET.equals(method.toUpperCase());
	}
	
	public static boolean isDelete(String method) {
		if(StringUtils.isBlank(method)) {
			return false;
		}
		return DELETE.equals(method.toUpperCase());
	}
	
}
